package com.nmsl.registration.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.nmsl.registration.mapper.skxPatientMapper;
import com.nmsl.registration.domain.skxPatient;
import com.nmsl.registration.service.skxIPatientService;

/**
 * 患者接诊Service业务层处理
 * 
 * @author sn
 * @date 2025-02-15
 */
@Service
public class skxPatientServiceImplSkx implements skxIPatientService
{
    @Autowired
    private skxPatientMapper skxPatientMapper;

    /**
     * 查询患者接诊
     * 
     * @param patientId 患者接诊主键
     * @return 患者接诊
     */
    @Override
    public skxPatient selectPatientByPatientId(Long patientId)
    {
        return skxPatientMapper.selectPatientByPatientId(patientId);
    }

    /**
     * 查询患者接诊列表
     * 
     * @param patient 患者接诊
     * @return 患者接诊
     */
    @Override
    public List<skxPatient> selectPatientList(skxPatient patient)
    {
        return skxPatientMapper.selectPatientList(patient);
    }

    /**
     * 新增患者接诊
     * 
     * @param patient 患者接诊
     * @return 结果
     */
    @Override
    public int insertPatient(skxPatient patient)
    {
        return skxPatientMapper.insertPatient(patient);
    }

    /**
     * 修改患者接诊
     * 
     * @param patient 患者接诊
     * @return 结果
     */
    @Override
    public int updatePatient(skxPatient patient)
    {
        return skxPatientMapper.updatePatient(patient);
    }

    /**
     * 批量删除患者接诊
     * 
     * @param patientIds 需要删除的患者接诊主键
     * @return 结果
     */
    @Override
    public int deletePatientByPatientIds(Long[] patientIds)
    {
        return skxPatientMapper.deletePatientByPatientIds(patientIds);
    }

    /**
     * 删除患者接诊信息
     * 
     * @param patientId 患者接诊主键
     * @return 结果
     */
    @Override
    public int deletePatientByPatientId(Long patientId)
    {
        return skxPatientMapper.deletePatientByPatientId(patientId);
    }

    @Override
    public List<skxPatient> getPatientList() {
        return skxPatientMapper.getPatientList();
    }
}
